Allow circular menubuttons
authorMatthias Clasen <mclasen@redhat.com>
Tue, 26 Jan 2021 05:17:08 +0000 (00:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Jan 2021 05:20:23 +0000 (00:20 -0500)
Fixes #3523

gtk/gtkmenubutton.c
gtk/theme/Adwaita/_common.scss

index 255a11c658b0d31289361d6d6ac33acbb5acdbe2..7204544830bceed4cd29c53797ebbe72d7f96900 100644 (file)
  * the menu will appear in. The CSS is expected to provide a suitable
  * image for each of these cases using the -gtk-icon-source property.
  *
+ * Optionally, the menubutton node can carry the .circular style class
+ * to request a round appearance.
+ *
  * # Accessibility
  *
  * GtkMenuButton uses the #GTK_ACCESSIBLE_ROLE_BUTTON role.
index 05877b1dc749fbbfb014884828ff9e46224b5799..77790d75289f72513703bcb8d29e90316a5f0eb4 100644 (file)
@@ -746,6 +746,7 @@ button {
 
   .linked.vertical > & { @extend %linked_vertical; }
 
+  menubutton.circular &,
   &.circular { // force circular button shape
     min-width: 32px;
     min-height: 32px;